﻿using System.ComponentModel.DataAnnotations;
using VisionCloud.Domain.DtoModel.Sys;

namespace VisionCloud.Domain.DtoModel.Applet.RequestDto
{
    /// <summary>
    /// 微信小程序用户登录Dto
    /// </summary>
    public class LogInDto : SysUserLoginDto
    {
        /// <summary>
        /// 客户端类型,默认为2
        /// </summary>
        public new TokenTypeEnum TokenType { get; set; } = TokenTypeEnum.Applet;

        /// <summary>
        /// 微信小程序登录返回的Code
        /// </summary>
        [Required]
        public string JsCode { get; set; }
    }

    public class VistorLoginDto
    {
        /// <summary>
        /// 微信小程序登录返回的Code
        /// </summary>
        [Required]
        public string JsCode { get; set; }
    }
}